import request from '../utils/request';

//作业调度
export function dischargeDetail(data) {
    return request({
        url: '/oa_web/v1_2_0/queue/discharge-detail',
        method: 'post',
        data
    })
}

//作业调度-具体日期展示-弹框数据
export function dischargeDetailDate(data) {
    return request({
        url: '/oa_web/v1_2_0/queue/discharge-detail-date',
        method: 'post',
        data
    })
}

//作业调度-具体日期展示
export function dischargeDetailList(data) {
    return request({
        url: '/oa_web/v1_2_0/queue/discharge-detail-list',
        method: 'post',
        data
    })
}

//作业调度-设置或更新队列卸货时间
export function dischargeConf(data) {
    return request({
        url: '/oa_web/v1_3_1/queue/discharge-conf',
        method: 'post',
        data
    })
}

//车辆排号调度
export function truckList(data) {
    return request({
        url: '/oa_web/v1_0_0/queue-truck/truck-list',
        method: 'post',
        data
    })
}

//车辆排号调度操作
export function truckOpt(data) {
    return request({
        url: '/oa_web/v1_0_0/queue-truck/truck-opt',
        method: 'post',
        data
    })
}

//预警模块
export function warningBlock(data) {
    return request({
        url: '/oa_web/v1_0_0/warning/warning-block',
        method: 'post',
        data
    })
}

//预警列表-站内节点预警
export function warningList(data) {
    return request({
        url: '/oa_web/v1_0_0/warning/warning-list',
        method: 'post',
        data
    })
}

//预警列表-站内节点预警-操作忽略
export function warningIgnore(data) {
    return request({
        url: '/oa_web/v1_0_0/warning/warning-ignore',
        method: 'post',
        data
    })
}

//预警列表-系统预警
export function warningSystemList(data) {
    return request({
        url: '/oa_web/v1_0_0/warning/warning-system-list',
        method: 'post',
        data
    })
}

//首页-12个月出入库重量统计
export function goodsWeightStatisticYear(data) {
    return request({
        url: '/oa_web/v1_0_0/home-page/goods-weight-statistic-year',
        method: 'post',
        data
    })
}

//首页-煤种出入库重量（全年+按月）
export function goodsWeightStatisticGoodscate(data) {
    return request({
        url: '/oa_web/v1_0_0/home-page/goods-weight-statistic-goodscate',
        method: 'post',
        data
    })
}

//首页-贸易商排名（全年+按月）
export function enterpriseRangeWeight(data) {
    return request({
        url: '/oa_web/v1_0_0/home-page/enterprise-range-weight',
        method: 'post',
        data
    })
}

//首页-贸易商详情-12个月入库量及占比
export function goodsWeightYearEnter(data) {
    return request({
        url: '/oa_web/v1_0_0/home-page/goods-weight-year-enter',
        method: 'post',
        data
    })
}

//首页-贸易商详情-煤种入库重量（年+本月+单月）
export function detailWeightGoodscate(data) {
    return request({
        url: '/oa_web/v1_0_0/home-page/detail-weight-goodscate',
        method: 'post',
        data
    })
}

//首页-贸易商详情-入库重量（全年）
export function detailWeightYear(data) {
    return request({
        url: '/oa_web/v1_0_0/home-page/detail-weight-year',
        method: 'post',
        data
    })
}

//首页--站台发运日报
export function sendCalendar(data) {
    return request({
        url: '/oa_web/v1_0_0/home-page/send-calendar',
        method: 'post',
        data,
        noLoading: true //不加载loading
    })
}

//首页--站台发运日报-详情
export function sendCalendarDetail(data) {
    return request({
        url: '/oa_web/v1_0_0/home-page/send-calendar-detail',
        method: 'post',
        data
    })
}

//首页--预警信息滚动
export function riskWarning(data) {
    return request({
        url: '/oa_web/v1_0_0/home-page/risk-warning',
        method: 'post',
        data
    })
}

//首页--预警数量
export function warningNote(data) {
    return request({
        url: '/oa_web/v1_0_0/warning/warning-note',
        method: 'post',
        data
    })
}

//首页--当天入库出库重量
export function goodsWeightStatisticDay(data) {
    return request({
        url: '/oa_web/v1_0_0/home-page/goods-weight-statistic-day',
        method: 'post',
        data
    })
}

//首页--煤种指标列表-指标名称
export function coalIndexList(data) {
    return request({
        url: '/oa_web/v1_2_0/coal-store/coal-index-list',
        method: 'post',
        data
    })
}

//首页--煤种指标列表-指标分项
export function coalIndexItemList(data) {
    return request({
        url: '/oa_web/v1_2_0/coal-store/coal-index-item-list',
        method: 'post',
        data,
        noLoading: true //不加载loading
    })
}

//首页--煤种新增前检查-煤种是否存在
export function coalExist(data) {
    return request({
        url: '/oa_web/v1_2_0/coal-store/coal-exist',
        method: 'post',
        data,
        noLoading: true //不加载loading
    })
}

//首页--煤种新增前检查-煤种新增
export function addCoalIndex(data) {
    return request({
        url: '/oa_web/v1_2_0/coal-store/add-coal-index',
        method: 'post',
        data
    })
}

//首页--煤种新增前检查-煤种指标列表
export function coalIndexRelationList(data) {
    return request({
        url: '/oa_web/v1_2_0/coal-store/coal-index-relation-list',
        method: 'post',
        data
    })
}

//首页--煤种新增前检查-煤种指标详情
export function coalIndexRelationDetail(data) {
    return request({
        url: '/oa_web/v1_2_0/coal-store/coal-index-relation-detail',
        method: 'post',
        data
    })
}

//首页--煤种新增前检查-煤种指标修改
export function coalIndexUpdate(data) {
    return request({
        url: '/oa_web/v1_2_0/coal-store/coal-index-update',
        method: 'post',
        data
    })
}

//首页--煤种新增前检查-煤种指标修改记录
export function coalIndexOptLog(data) {
    return request({
        url: '/oa_web/v1_2_0/coal-store/coal-index-opt-log',
        method: 'post',
        data
    })
}
// 调度-车辆排号操作
export function truckCallAgain(data) {
    return request({
        url: '/oa_web/v1_0_0/truck-call/truck-call-again',
        method: 'post',
        data
    })
}


//首页--调度总控台-待审批到仓煤种信息
export function warehouseCoalList(data) {
    return request({
        url: '/oa_web/v1_4_0/queue/warehouse-coal-list',
        method: 'post',
        data
    })
}

//首页--调度总控台-某月到仓煤种信息
export function warehouseMonthList(data) {
    return request({
        url: '/oa_web/v1_4_0/queue/warehouse-month-list',
        method: 'post',
        data
    })
}

//首页--调度总控台-卸货时间仓更新
export function warehouseCoalConf(data) {
    return request({
        url: '/oa_web/v1_4_0/queue/warehouse-coal-conf',
        method: 'post',
        data
    })
}

//首页--调度总控台-某月到仓煤种信息
export function warehouseDischargeList(data) {
    return request({
        url: '/oa_web/v1_4_0/queue/warehouse-discharge-list',
        method: 'post',
        data
    })
}

//调度总控台-某月到仓煤种信息
export function warehouseDischargeDateList(data) {
    return request({
        url: '/oa_web/v1_4_0/queue/warehouse-discharge-date-list',
        method: 'post',
        data
    })
}